package com.toe.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.toe.common.restful.JsonPage;
import com.toe.pojo.entity.user.UserHaveBuy;

/**
 * 用户已购课程关系表
 */
public interface UserHaveBuyService extends IService<UserHaveBuy> {

    UserHaveBuy getByUserIdClassesId(Long userId, Long classId);

    JsonPage<UserHaveBuy> listByUserId(Long userId, int pageNum, int pageSize);

}
